import { exSwitch, exRadioGroup } from '@ve/common/components/extension'
// import { componentId } from '@/utils/unique'

export default {
  VERSION: '20220408',
  type: 'uiSplitpanes',
  name: '分割面板',
  icon: 'layout-left-line',
  svg: 'fengemianban',
  //数据别名
  // dataName: 'uiSplitpanes_data',
  //扩展
  extension: {
    horizontal: exRadioGroup('方向', false, [
      { value: true, label: '横向' },
      { value: false, label: '纵向' },
    ]),
    sizes: exRadioGroup('宽度占比', 1, [
      { value: 1, label: '2/8比' },
      { value: 3, label: '3/7比' },
      { value: 4, label: '4/6比' },
      { value: 2, label: '5/5比' },
      { value: 5, label: '6/4比' },
      { value: 6, label: '7/3比' },
      { value: 7, label: '8/2比' },
      { value: 8, label: '4.5/5.5比' },
    ]),
    hasExpand: exSwitch('启用收缩', false),
    noDragging: exSwitch('禁止拖动', false),
    paneBClose: exSwitch('B面板可关闭', false),
  },
  list: [
    {
      // _id: `splitpanes_${componentId(6)}`,
      type: 'uiSplitpanesPane',
      name: '面板A',
      list: [],
      extension: {},
    },
    {
      // _id: `splitpanes_${componentId(6)}`,
      type: 'uiSplitpanesPane',
      name: '面板B',
      extension: {},
      list: [],
    },
  ],
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
